package com.patterns.decorator;

/**
 * @Author Tanyu
 * @Date 2020/6/2 10:59
 * @Description 具体的装饰角色
 * @Version 1.0
 */
public class Swimcar extends SuperCar {

  public Swimcar(Icar car) {
    super(car);
  }

  public void swim() {
    System.out.println("水下游");
  }
  @Override
  public void move() {
    super.move();
    swim();
  }
}
